﻿namespace AnyOffice.Model
{
    using System;

    public class MobileData
    {
        protected string _content = string.Empty;
        protected string _fromId = string.Empty;
        protected int _mobileId = -1;
        protected string _phone = string.Empty;
        protected int _sendFlag;
        protected DateTime _sendTime = DateTime.Now;
        protected object _toId;

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public string FromId
        {
            get
            {
                return this._fromId;
            }
            set
            {
                this._fromId = value;
            }
        }

        public int MobileId
        {
            get
            {
                return this._mobileId;
            }
            set
            {
                this._mobileId = value;
            }
        }

        public string Phone
        {
            get
            {
                return this._phone;
            }
            set
            {
                this._phone = value;
            }
        }

        public int SendFlag
        {
            get
            {
                return this._sendFlag;
            }
            set
            {
                this._sendFlag = value;
            }
        }

        public DateTime SendTime
        {
            get
            {
                return this._sendTime;
            }
            set
            {
                this._sendTime = value;
            }
        }

        public string ToId
        {
            get
            {
                return (string) this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public bool ToIdIsNull
        {
            get
            {
                return (this._toId == null);
            }
            set
            {
                if (value)
                {
                    this._toId = null;
                }
            }
        }
    }
}

